
import java.util.Arrays;
public class Main {
    public static void main(String[] args) {
        int[] arr1={11,21,33,1,2,4};
        func2(arr1);//没有调用func
        func(arr1);//调用了func
    }
    public static void func(int[] arr1){
        for (int i = 0; i < arr1.length; i++) {
            Arrays.sort(arr1);//快速排序
        }
        func2(arr1);
    }
    public static void func2(int[] arr1) {
        System.out.println(Arrays.toString(arr1));
    }
}